package com.cuit.qx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *    降雨预警实体类
 * </p>
 *
 * @author lcj
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WarningRain extends Model<WarningRain> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 预警颜色
     */
    private String color;

    /**
     * 阈值
     */
    private String threshold;

    /**
     * 小时制
     */
    private Integer hour;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
